﻿using Md.Api.Model.Web.MdProductOrder.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Web.MdProductOrder;
/// <summary>
/// 通过订单编号删除订单服务
/// </summary>
public class DeleteMdProductOrderByIdWebService : ApiBase<RequestDeleteMdProductOrderByIdWebModel>
{
    /// <summary>
    /// 订单仓储
    /// </summary>
    public MdProductOrderRep mdProductOrderRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = mdProductOrderRep.DeleteMdProductOrderById(Parameter.OrderIds);

        Result.Data = res;
    }
}

